@function getpx($size, $paper: 'a4') {
  $dh: 3508px;
  $dw: 2480px;
  $width: 793.68px;
  $height: 1122.52px;

  @return $size * ($width / $dw) * 1px;
}

%fontSet {
  font-family: Tahoma, Arial, SimSun, '宋体', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

[v-cloak] {
  display: none;
}

.docBaseStyle {
  // font-family: SiYuanSong-SemiBold;
  @extend %fontSet;

  font-weight: 500;
  color: #000;
  font-size: 14px;

  textarea,
  input {
    outline: none;
    border: none;
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: #000;
    clear: both;
  }

  input {
    line-height: 24px;
  }

  .inpBorBottom {
    border-bottom: 1px solid #000;
    width: 86px;
  }

  textarea {
    resize: none;
  }

  ::v-deep .docDatePicker {
    width: 126px;

    .el-input__inner {
      padding: 0;
      height: 24px;
      border: none;
      border-radius: 0;
      border-bottom: 1px solid #000;
      color: #000;
    }

    .el-input__prefix {
      display: none;
    }

    .el-input__suffix {
      right: 0;

      .el-input__icon {
        line-height: 26px;
      }
    }
  }

  .borderBottom1 {
    border-bottom: 1px solid #000;
  }

  .line662 {
    width: 662px;
    height: 1px;
    background-color: #000;
  }

  .fontBold {
    font-weight: bold;
  }

  .fontSize12 {
    font-size: 12px;
  }

  .fontSize14 {
    font-size: 14px;
  }

  .fontSize16 {
    font-size: 16px;
  }

  .fontSize19 {
    font-size: 19px;
  }

  .width24 {
    width: 24px;
  }

  .width30 {
    width: 30px;
  }

  .width36 {
    width: 36px;
  }

  .width38 {
    width: 38px;
  }

  .width50 {
    width: 50px;
  }

  .width60 {
    width: 60px;
  }

  .width64 {
    width: 64px;
  }

  .width52 {
    width: 52px;
  }

  .width74 {
    width: 74px;
  }

  .width90 {
    width: 90px;
  }

  .width102 {
    width: 102px;
  }

  .width132 {
    width: 132px;
  }

  .width180 {
    width: 180px;
  }

  .width200 {
    width: 200px;
  }

  .width248 {
    width: 248px;
  }

  .width352 {
    width: 352px;
  }

  .width420 {
    width: 420px;
  }

  .width464 {
    width: 464px;
    overflow: hidden;
  }

  .width530 {
    width: 530px;
  }

  .height16 {
    height: 16px;
  }

  .height17 {
    height: 17px;
  }

  .height18 {
    height: 18px;
  }

  .height19 {
    height: 19px;
  }

  .height20 {
    height: 20px;
  }

  .height21 {
    height: 21px;
  }

  .height22 {
    height: 22px;
  }

  .height23 {
    height: 23px;
  }

  .height24 {
    height: 24px;
  }

  .m {
    @for $i from 16 through 24 {
      &Height#{$i} {
        min-height: $i + 0;
      }
    }
  }

  .lineHeight13 {
    line-height: 13px;
  }

  .lineHeight16 {
    line-height: 16px;
  }

  .lineHeight18 {
    line-height: 18px;
  }

  .lineHeight20 {
    line-height: 20px;
  }

  .lineHeight21 {
    line-height: 21px;
  }

  .lineHeight22 {
    line-height: 22px;
  }

  .lineHeight24 {
    line-height: 24px;
  }

  .marBottom2 {
    margin-bottom: 2px;
  }

  .rotate180 {
    transform: rotate(90deg);
  }

  .posiRelative {
    position: relative;
  }

  .posiAbsolute {
    position: absolute;
    top: 0;
    left: 0;
  }

  .opacity0 {
    opacity: 0;
  }

  .marLeft13 {
    margin-left: 13px;
  }

  .padding0 {
    padding: 0;
  }

  .ws {
    &-nowrap {
      white-space: nowrap;
    }
  }
  // ----------------

  .width70 {
    width: getpx(70);
  }

  .width100 {
    width: getpx(100);
  }

  .width130 {
    width: getpx(130);
  }

  .width160 {
    width: getpx(160);
  }

  .width230 {
    width: getpx(230);
  }

  .width250 {
    width: getpx(250);
  }

  .width280 {
    width: getpx(280);
  }

  .width300 {
    width: getpx(300);
  }

  .width310 {
    width: getpx(310);
  }

  .width330 {
    width: getpx(330);
  }

  .width344 {
    width: getpx(344);
  }

  .width360 {
    width: getpx(360);
  }

  .width380 {
    width: getpx(380);
  }

  .width413 {
    width: getpx(413);
  }

  .width480 {
    width: getpx(480);
  }

  .width494 {
    width: getpx(494);
  }

  .width1000 {
    width: getpx(1000);
  }

  .m {
    &Width70 {
      min-width: getpx(70);
    }

    &Width100 {
      min-width: getpx(100);
    }

    &Width130 {
      min-width: getpx(130);
    }

    &Width160 {
      min-width: getpx(160);
    }

    &Width230 {
      min-width: getpx(230);
    }

    &Width250 {
      min-width: getpx(250);
    }

    &Width280 {
      min-width: getpx(280);
    }

    &Width300 {
      min-width: getpx(300);
    }

    &Width310 {
      min-width: getpx(310);
    }

    &Width330 {
      min-width: getpx(330);
    }

    &Width344 {
      min-width: getpx(344);
    }

    &Width360 {
      min-width: getpx(360);
    }

    &Width380 {
      min-width: getpx(380);
    }

    &Width413 {
      min-width: getpx(413);
    }

    &Width480 {
      min-width: getpx(480);
    }

    &Width494 {
      min-width: getpx(494);
    }

    &Width1000 {
      min-width: getpx(1000);
    }
  }

  .height50 {
    height: getpx(50);
  }

  .height74 {
    height: 22px;
  }

  .height94 {
    height: getpx(94);
  }

  .height98 {
    height: getpx(98);
  }

  .height116 {
    height: getpx(116);
  }

  .height118 {
    height: getpx(118);
  }

  .height174 {
    height: getpx(174);
  }

  .height254 {
    height: getpx(254);
  }

  .height264 {
    height: getpx(264);
  }

  .height278 {
    height: getpx(278);
  }

  .height356 {
    height: getpx(356);
  }

  .height364 {
    height: getpx(364);
  }

  .height516 {
    height: getpx(516);
  }

  .alignCenter {
    text-align: center;
  }

  .alignRight {
    text-align: right;
  }

  .datePickerBox {
    display: inline-block;
  }

  .el-date-picker {
    border: none;
  }

  .docTextareaSty,
  .docPosiAbso {
    height: 100%;
    width: 100%;
  }

  .docTextareaSty {
    overflow: hidden;
  }

  .mainItem {
    border-bottom: getpx(4) solid #000;
  }

  .flexRow {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flexColumn {
    flex-direction: column;
  }

  .flexStart {
    justify-content: flex-start;
  }

  .flexWrap {
    flex-wrap: wrap;
  }

  .spaceAround {
    justify-content: space-around;
  }

  .spaceEnd {
    justify-content: flex-end;
  }

  .spaceBetween {
    justify-content: space-between;
  }

  .alignEnd {
    align-items: flex-end;
  }

  .textCenter {
    text-align: center;
  }

  .flexAlignStart {
    align-items: flex-start;
  }

  .itemLeft,
  .itemRight {
    height: 100%;
  }

  .itemLeft {
    display: flex;
    width: getpx(292);
    border-right: getpx(4) solid #000;
    font-size: getpx(50);
    font-weight: bold;
  }

  .itemRight {
    padding-left: 10px;
    width: getpx(1784);
    font-size: getpx(40);
  }

  .marLeft20 {
    margin-left: getpx(20);
  }

  .marLeft59 {
    margin-left: getpx(59);
  }

  .marLeft100 {
    margin-left: getpx(100);
  }

  .marLeft400 {
    margin-left: getpx(400);
  }

  .marRight18 {
    margin-right: getpx(18);
  }

  .marRight19 {
    margin-right: getpx(19);
  }

  .marRight20 {
    margin-right: getpx(20);
  }

  .marRight59 {
    margin-right: getpx(59);
  }

  .marRight60 {
    margin-right: getpx(60);
  }

  .marRight45 {
    margin-right: getpx(45);
  }

  .marRight35 {
    margin-right: getpx(35);
  }

  .fontSize36 {
    font-size: getpx(36);
  }

  .fontSize38 {
    font-size: getpx(38);
  }

  .fontSize40 {
    font-size: getpx(40);
  }

  .fontSize50 {
    font-size: getpx(50);
  }

  .fontBold {
    font-weight: bold;
  }

  .posiRelative {
    position: relative;
  }

  .posiAbsolute {
    position: absolute;
  }

  .borderRight4 {
    border-right: 1px solid #000;
  }

  .widthAll {
    width: 100%;
  }

  .heightAll {
    height: 100%;
  }

  .enRouteTime,
  .enRouteHr,
  .enRouteNbp,
  .enRouteRr,
  .enRouteSpo,
  .enRouteIllness {
    font-size: 12px;
    border-right: 1px solid #000;
    height: 24px;
  }

  .enRouteIllness {
    border-right: none;
  }

  .enRouteTime {
    width: 105px;
  }

  .enRouteHr {
    width: 82px;
  }

  .enRouteNbp {
    width: 96px;
  }

  .enRouteRr {
    width: 44px;
  }

  .enRouteSpo {
    width: 116px;
  }

  .enRouteIllness {
    width: 154px;
  }

  .admiDiagBox {
    margin: getpx(23) 0 getpx(9) 0;
  }
}

.mainPage.zzhl {
  position: relative;
  padding: 20px;
  width: 297mm;
  height: 210mm;
  //   transform: rotate(90deg);
  box-sizing: content-box;
  font-size: 12px;
  font-weight: normal;

  .mainBox {
    box-sizing: content-box;
    border: 1px solid #000;
    width: 960px;
    margin: 0 auto;
  }

  .flex {
    display: flex;
  }

  .flex {
    &-1 {
      flex: 1;
    }
  }

  .txt {
    &-c {
      text-align: center;
    }

    &-r {
      text-align: right;
    }
  }

  .box {
    &-1 {
      width: 20px;
      height: 100%;
      box-sizing: border-box;
    }

    &-3 {
      width: 60px;
      height: 100%;
      box-sizing: border-box;
    }

    &-6 {
      width: 120px;
      height: 100%;
      box-sizing: border-box;
    }

    &-42 {
      width: 840px;
      height: 100%;
      box-sizing: border-box;
    }
  }

  .line {
    &-1 {
      line-height: 15px;
      height: 45px;
    }

    &-2 {
      line-height: 20px;
    }

    &-3 {
      line-height: 53px;
    }

    &-4 {
      line-height: 68px;
    }

    &-5 {
      line-height: 12px;
      height: 30px;
    }

    &-10 {
      height: 15px;
      line-height: 15px;
    }

    &-20 {
      height: 30px;
      line-height: 30px;
    }

    &-50 {
      height: 75px;
      line-height: 15px;
    }
  }

  .mt {
    &-8 {
      margin-top: 8px;
    }

    &-10 {
      margin-top: 10px;
    }
  }

  .bor {
    &-a {
      border: 1px solid #000;
      box-sizing: border-box;
    }

    &-b {
      border-bottom: 1px solid #000;
      box-sizing: border-box;
    }

    &-r {
      border-right: 1px solid #000;
      box-sizing: border-box;
    }

    &-t {
      border-top: 1px solid #000;
      box-sizing: border-box;
    }

    &-l {
      border-left: 1px solid #000;
      box-sizing: border-box;
    }
  }

  .relative {
    position: relative;
  }

  .canvasMain {
    position: absolute;
    left: 0;
    top: 0;
  }

  .w {
    &-1 {
      width: 37px;
    }

    &-2 {
      width: 74px;
    }

    &-3 {
      width: 50px;
    }

    &-4 {
      width: 100px;
    }

    &-5 {
      width: 300px;
    }

    &-6 {
      width: 86px;
    }

    &-7 {
      width: 78px;
    }
  }

  .h {
    &-1 {
      height: 30px;
    }

    &-53 {
      height: 53px;
    }

    &-68 {
      height: 68px;
    }
  }

  .flex {
    display: flex;
  }

  .flex-c {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .block {
    display: block;
  }

  p {
    margin: 0;
  }

  input {
    outline: none;
    border: none;
  }

  .pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .el-date-editor {
    padding-left: 2px;
    width: 70px;
    line-height: 30px;
  }
}

.text-center {
  text-align: center;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.bold {
  font-family: SiYuanSong-Heavy;

  @extend %fontSet;

  button,
  input,
  optgroup,
  select,
  textarea {
    // font-family: "SiYuanSong-Heavy";
    @extend %fontSet;
  }

  ::v-deep .el-date-editor .el-input__inner {
    // font-family: "SiYuanSong-Heavy";
    @extend %fontSet;
  }
}

.container {
  h1 {
    margin: 0 0 3px 7px;
    font-size: 16px;

    label {
      font-size: 16px;
    }

    span {
      font-size: 16px;
    }
  }

  label,
  span {
    margin: 0;
    display: inline-block;
    font-size: getpx(36);
    font-weight: normal;
    text-align: right;
  }

  label.header {
    text-align-last: justify;
    min-width: 48px;
  }

  p {
    margin: 0 0 0 2px;
    padding: 0;
    font-size: getpx(36);
  }

  input {
    outline: none;
    border: none;
    line-height: 1;
  }

  &.ws {
    label {
      margin-right: 5px;

      &:not(.el-radio, .input)::after {
        content: ':';
      }

      &.el-checkbox {
        &::after {
          content: '';
        }
      }
    }
  }
}

.score {
  width: 662.7868064516px;

  ::v-deep .el-table .cell {
    padding: 0 2px;
    font-size: 12px;
  }
}

input[type='checkbox'] {
  width: 11px;
  height: 11px;
  border-radius: 0;
  border-color: #000;
  background-color: transparent;

  &::after {
    border-color: #000;
    height: 7px;
    top: -1px;
    left: 3px;
  }
}

input {
  border: none;
  outline: none;
  font-size: 13px;
  min-width: 10px;
  padding: 0 1px;

  &:disabled {
    background: transparent;
  }
}

::v-deep {
  .el-checkbox {
    margin-right: 12px;

    &:last-of-type {
      margin-right: 0;
    }

    &.wlb {
      .el-checkbox__input {
        transform: translateY(-2px);
      }
    }

    .el-checkbox__label {
      padding-left: 4px;
      line-height: 1;
      font-size: 13px;
      font-weight: normal;
      color: #000;
    }

    .el-checkbox__inner {
      width: 13px;
      height: 13px;
      border-radius: 0;
      border-color: #000;
      background-color: transparent;

      &::after {
        border-color: #000;
        height: 7px;
        top: 0;
        left: 4px;
      }
    }
  }

  .el-radio {
    margin-right: 8px;

    &:last-child {
      margin-right: 0;
    }
  }

  .el-radio__label {
    padding-left: 4px;
    line-height: 1;
    font-size: 13px;
    color: #000;
    transform: translateY(-1px);
    font-weight: normal;
    display: inline-block;
  }

  .el-radio__inner {
    width: 13px;
    height: 13px;
    border-radius: 0;
    border-color: #000;
    background-color: transparent;
    transition:
      border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
      background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);

    &::after {
      top: 0;
      left: 4px;
      width: 3px;
      height: 7px;
      transform: rotate(45deg) scaleY(0);
      border-radius: inherit;
      border: 1px solid #000;
      border-left: 0;
      border-top: 0;
      background-color: transparent;
      color: #000;
      box-sizing: content-box;
    }
  }

  .el-radio__input {
    margin-left: 5px;

    &.is-checked {
      .el-radio__inner {
        background: transparent;
        border-color: #000;

        &::after {
          transform: rotate(45deg) scaleY(1);
        }
      }

      & + .el-radio__label {
        color: #000;
      }
    }

    &.is-disabled {
      .el-radio__inner {
        background-color: transparent;
        border-color: #000;

        &::after {
          background-color: transparent;
        }
      }

      & + span.el-radio__label {
        color: #000;
        cursor: not-allowed;
      }
    }
  }

  .el-radio__input.is-disabled.is-checked .el-radio__inner::after {
    background-color: transparent;
  }

  .el-input {
    width: 170px;

    .el-input__inner {
      padding: 0 1px;
      height: 18px;
      line-height: 18px;
      border: none;
      border-radius: 0;
      font-size: 13px;
      color: #000;
    }
  }

  .el-input__suffix {
    display: none;
  }

  .el-date-editor {
    width: 120px;
    border: none;

    .el-input__inner {
      margin: 0;
      padding: 0;
      height: 18px;
      line-height: 18px;
      font-size: 12px;
      color: #000;
      border: none;
    }

    .el-input__prefix,
    .el-input__suffix {
      display: none;
    }
  }

  .el-table {
    width: 100%;

    @extend %fontSet;

    &.el-table--border {
      border-color: #000;

      &::after,
      &::before {
        background-color: #000;
      }
    }

    .el-table__header-wrapper {
      thead {
        tr {
          th {
            &.el-table__cell {
              padding: 6px 0;
              height: 38px;
              background-color: #fff;
              font-size: 14px;
              color: #000;
              border-right-color: #000;
              border-bottom-color: #000;
            }
          }
        }
      }
    }

    .el-table__body {
      tr {
        & > td {
          &.el-table__cell {
            padding: 6px 0;
            height: 38px;
            color: #000;
            border-right-color: #000;
            border-bottom-color: #000;
          }
        }

        &.current-row,
        &:hover {
          & > td {
            &.el-table__cell {
              background-color: #fff;
              color: #000;
              border-right-color: #000;
            }
          }
        }
      }
    }
  }

  .el-table--border .el-table__cell:first-child .cell {
    padding: 0;
  }

  .el-table .cell {
    line-height: 17px;
  }
}
